package ram;

import java.awt.BorderLayout;
import java.awt.Frame;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import platno.Platno;

public class Ram extends Frame {

	public Platno platno = null;

	public Ram(int x, int y){
		platno = new Platno();
		this.setLayout(new BorderLayout());
		this.setSize(x, y);
		this.add(platno);
		addWindowListener(new WindowAdapter() {
	          public void windowClosing(WindowEvent e) {
	             System.exit(0);
	          }
	    });
	}
}